package com.wyg.state;

/**
 * @description:
 * @author: WYG
 * @time: 2021/4/7 9:34
 */

public class SoldOutState implements State{
    GumballMachine gumballMachine;
    public SoldOutState(GumballMachine gumballMachine) {
        this.gumballMachine = gumballMachine;
    }

    @Override
    public void insertQuarter() {
        System.out.println("糖果已售罄，不要投币啦");
    }

    @Override
    public void ejectQuarter() {
        System.out.println("拒绝退钱，因为您没有投币");
    }

    @Override
    public void turnCrank() {
        System.out.println("虽然您转动了曲柄，但是没有糖果了");
    }

    @Override
    public void dispense() {
        System.out.println("糖果已售罄，没有糖果可以分配了");
    }
}
